Skip to content

Prefer Kubernetes WebSockets for remote exec with SPDY fallback - #3361

Closed
YamonBot wants to merge 1 commit into
devspace-sh:mainfrom
YamonBot:codex/websocket-remotecommand-20261124
Closed

YamonBot wants to merge 1 commit into
devspace-sh:mainfrom
YamonBot:codex/websocket-remotecommand-20261124

Conversation

@YamonBot

Copy link
Copy Markdown

Summary

Kubernetes 1.31+ supports WebSocket streaming for pod exec. DevSpace 6.3.21 still creates an SPDY-only executor, so employee-authenticated exec through the FractalOps kube-api.yamon.io tunnel returns Upgrade request required.

This change uses the upstream remotecommand.NewWebSocketExecutor first and retains the existing SPDY executor as a fallback for upgrade and HTTPS proxy failures. Existing auth, TLS, and RBAC paths remain unchanged.

Verification

  • go test -p 3 ./pkg/devspace/kubectl
  • Local test result ok github.com/loft-sh/devspace/pkg/devspace/kubectl 0.844s
  • git diff --check
  • Employee OIDC VM test through the existing kubeconfig and the same DevPod Pod
  • Windows candidate binary sync changed and reverted a source file, with matching local and remote SHA-256 values
  • Same Chrome tab observed Connect HMR baseline 105 -> Connect HMR edited 105 -> Connect HMR baseline 105 without reload

The test used the existing nonproduction Pod and was cleaned up afterward.

@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devspace-docs canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 7bab775
🔍 Latest deploy log https://app.netlify.com/projects/devspace-docs/deploys/6b056cca60b158c533c61d0d

Signed-off-by: YamonBot <41898282+github-actions[bot]@users.noreply.github.com>
@YamonBot
YamonBot force-pushed the codex/websocket-remotecommand-20261124 branch from cbf9929 to 7bab775 Compare November 24, 2026 10:53
@YamonBot YamonBot closed this Nov 24, 2026
@YamonBot
YamonBot deleted the codex/websocket-remotecommand-20261124 branch November 24, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants